#include <iostream>
#include "map.h"
//#include <map>
using namespace std;

int main()
{
	map<int,int> m;
	int n = 10;
	for (int i = 0; i < n; i++)
	{
		m[i] = i * i;
	}

	for (auto x : m)
	{
		cout << x.first << "->" << x.second << endl;
	}

	for (int i = 0; i < n; i++)
	{
		cout << m[i] << endl;
	}
	srand(time(nullptr));
	map<int, int> m2 = m;
	for (int i = 0; i < 100000; i++)
	{
		m2[i] = i*i/2;
	}

	cout << m2.isok() << endl;

	//set<const int> s;
	//int n = 10;
	//for (int i = 0; i < n; i++)
	//{
	//	s.insert(i);
	//}

	//for (auto x : s) cout << x << endl;

	return 0;
 }
